package wxpay

// ------------payConst(支付相关常量定义)-----------------//

const (
	wxBaseUrl = "https://api.mch.weixin.qq.com/"

	// 支付url
	wxUrlUnifiedOrder = wxBaseUrl + "pay/unifiedorder"   //统一下单
	wxUrlOrderQuery   = wxBaseUrl + "pay/orderquery"     //查询订单
	wxUrlMicropay     = wxBaseUrl + "pay/micropay"       //提交付款码支付
	wxUrlCloseOrder   = wxBaseUrl + "pay/closeorder"     //关闭订单
	wxUrlRefund       = wxBaseUrl + "secapi/pay/refund"  //申请退款
	wxUrlReverse      = wxBaseUrl + "secapi/pay/reverse" //撤销订单
	wxUrlRefundQuery  = wxBaseUrl + "pay/refundquery"    //查询退款
	wxUrlDownloadBill = wxBaseUrl + "pay/downloadbill"   //下载对账单

	wxUrlSendminiprogramhb = wxBaseUrl + "mmpaymkttransfers/sendminiprogramhb"   // 发放小程序红包
	wxUrlSendredpack       = wxBaseUrl + "mmpaymkttransfers/sendredpack"         // 发放红包
	wxUrlTransfers         = wxBaseUrl + "mmpaymkttransfers/promotion/transfers" // 提现-企业转帐到零钱
	wxUrlQueryTransfers    = wxBaseUrl + "mmpaymkttransfers/gettransferinfo"     //

	wxPayScoreOrder = wxBaseUrl + "v3/payscore/serviceorder" // 支付分下单

	//支付类型
	TradeTypeJsApi  = "JSAPI"
	TradeTypeApp    = "APP"
	TradeTypeH5     = "MWEB"
	TradeTypeNative = "NATIVE"

	// 加密类型
	SignTypeMD5        = "MD5"
	SignTypeSHA1       = "SHA1"
	SignTypeHMACSHA256 = "HMAC-SHA256"

	// 返回值
	RCSuccess = "SUCCESS"
	RCFail    = "FAIL"
)
